package cn.scw.project.facility.service;

import cn.scw.project.facility.domain.FacPrintPriceFacility;
import cn.scw.project.facility.domain.netework.bean.FacPrintPriceAddReq;
import cn.scw.project.facility.domain.netework.bean.FacPrintPriceFacilityAddReq;
import cn.scw.project.facility.domain.netework.bean.FacPrintPriceFacilityFindReq;
import cn.scw.project.facility.domain.vo.FacPrintPriceResVo;
import cn.scw.project.facility.domain.vo.FacPrintPriceVo;

import java.util.List;

/**
 * 设备打印价格Service接口
 *
 * @author api
 * @date 2020-05-20
 */
public interface IFacPrintPriceFacilityService {
    /**
     * 查询设备打印价格
     *
     * @param id 设备打印价格ID
     * @return 设备打印价格
     */
    public FacPrintPriceFacility selectFacPrintPriceFacilityById(Long id);

    FacPrintPriceVo selectFacPrintPriceFacilityVoById(Long id);

    /**
     * 查询设备打印价格列表
     *
     * @param code 设备编码
     * @return 设备打印价格集合
     */
    public List<FacPrintPriceResVo> selectFacPrintPriceFacilityList(String code);

    /**
     * 新增设备打印价格
     *
     * @param req 设备打印价格
     * @return 结果
     */
    public int insertFacPrintPriceFacility(List<FacPrintPriceFacilityAddReq> req);

    /**
     * 修改设备打印价格
     *
     * @param req 设备打印价格
     * @return 结果
     */
    public int updateFacPrintPriceFacility(FacPrintPriceAddReq req);

    /**
     * 批量删除设备打印价格
     *
     * @param ids 需要删除的设备打印价格ID
     * @return 结果
     */
    public int deleteFacPrintPriceFacilityByIds(Long[] ids);

    /**
     * 删除设备打印价格信息
     *
     * @param id 设备打印价格ID
     * @return 结果
     */
    public int deleteFacPrintPriceFacilityById(Long id);

    boolean existsByCodeTypeAndIsColoursAndIsDoubleFacedAndPaperNumber(String facilityCode, String type, boolean isColours, boolean isDoubleFaced, int paperNumber);

    FacPrintPriceVo selectByFacilityCodeAndTypeAndIsColoursAndIsDoubleFacedAndPaperNumber(String facilityCode, String type, boolean isColours, boolean isDoubleFaced,int paperNumber);

    FacPrintPriceVo selectByFacilityCodeAndTypeAndIsColoursAndIsDoubleFacedAndPaperNumber(FacPrintPriceFacilityFindReq req);
}
